package com.ruoyi.iot.dataprocessing.service;

import java.util.List;

import com.ruoyi.iot.api.domain.HealthDatas;
import com.ruoyi.iot.api.domain.HeathParam;
import com.ruoyi.iot.dataprocessing.domain.SensorMessage;
import com.ruoyi.iot.dataprocessing.domain.WatchVO;

/**
 * 设备消息Service接口
 * 
 * @author luogongquan
 * @date 2024-08-26
 */
public interface ISensorMessageService 
{
    /**
     * 查询设备消息
     * 
     * @param id 设备消息主键
     * @return 设备消息
     */
    public SensorMessage selectSensorMessageById(Long id);

    /**
     * 查询设备消息列表
     * 
     * @param sensorMessage 设备消息
     * @return 设备消息集合
     */
    public List<SensorMessage> selectSensorMessageList(SensorMessage sensorMessage);

    /**
     * 新增设备消息
     * 
     * @param sensorMessage 设备消息
     * @return 结果
     */
    public void insertSensorMessage(SensorMessage sensorMessage);

    /**
     * 修改设备消息
     * 
     * @param sensorMessage 设备消息
     * @return 结果
     */
    public int updateSensorMessage(SensorMessage sensorMessage);

    /**
     * 批量删除设备消息
     * 
     * @param ids 需要删除的设备消息主键集合
     * @return 结果
     */
    public int deleteSensorMessageByIds(Long[] ids);

    /**
     * 删除设备消息信息
     * 
     * @param id 设备消息主键
     * @return 结果
     */
    public int deleteSensorMessageById(Long id);

    WatchVO getLastMessageByCustomerId(Long customerId);

    WatchVO getLastMessageByCustomerIdDate(Long customerId, String date);

    Boolean addmockData(Long customerId);

    HealthDatas getHealthDataByDay(Long customerId);
    HealthDatas getHealthData(HeathParam healthParam);
    HealthDatas getLastWeekHealthData(HeathParam healthParam);
    HealthDatas getLastMonthHealthData(HeathParam healthParam);
}
